package com.cloudsigns.factorymanager2.cusenum;

/**
 * 自定义枚举类
 * Created by tony on 2018/3/9.
 */

public class CommonEnum {
    /**
     * 工程单类别
     */
    public enum EngineeringORderCategory {
        INSTALL,
        BATCH_INSTALL,
        CONSTRUCT,
        MAINTAIN,
        PUBLICATION,
        PATROL,
        SURVEY,
    }


    public enum ProductShapeType {
        ROUND, //圆形
        RECTANGLE, //矩形
        SPECIALSHAPE, //异性

    }

    public enum ROLECATEGORY {
        SUPER,
        MANAGER,
        TEAM,
    }

    public enum MaintenanceCategory {
        ELECTRICAL_PROBLEM,
        QUALITY_ISSUES,
        OTHERS,
    }

    /**
     * 异常反馈类型
     */
    public enum SubType {
        DAMAGE,  //物流货损
        DELAY,  //物流延误
        INSTALL_UNUSUAL, //安装异常
        OMIT, //物流漏货
    }


    /**
     * 正常反馈类型
     */
    public enum NormalSubType {
        CONSTRUCT,  //工程
        LOGISTICS,  //物流

    }

    /**
     * 反馈类型
     */
    public enum FeedBackType {
        NORMAL, //正常反馈
        UNUSUAL, //异常反馈
        COMPLETED, //完工反馈
    }

    /**
     * 异常反馈状态
     */
    public enum UnusualStatus {
        WAIT_CONFIRM, //等待异常确认
        WAIT_REPLY,  //等待异常回复
        WAIT_REPLY_CONFIRM, //等待异常回复确认
        REPLY_CONFIRM_FINISH, //异常回复已确认
    }

    /**
     * 分派状态
     */
    public enum AssignStatus {
        CREATED, //创建
        EDITED,
        SEND,
        RECEIVED, //已经接收
        RETURNED, //退回
        COMPLETED,
    }

    public enum EngineeringOrderStatus {
        CREATED, //创建/未编辑
        EDITED, //完成编辑
        SEND, //派发
        RECEIVED, //已经接收
        RETURNED, //退回
        COMPLETED, //竣工
        CONSTRUCT, //施工中
        PAUSE, //暂停
    }

    /**
     * 接收操作
     */
    public enum STATUS {
        RECEIVED,
        RETURNED,
    }

    /**
     * 升降系统
     */
    public enum LIFTSYSTEM {
        NORMAL,
        SHIELD, //遮蔽
        LEAK, //泄露 裂缝
        RUST, //生锈
        VARIANT, //变体
        LOOSE, //宽松的 不牢固 不精确
        MALFUNCTION, //故障
        WEAR, //磨损
        NOT_CLEAN,
        PLICATED, //折皱
        TEAR, //撕裂
        SCRATCH, //刮痕 擦伤
    }

    /**
     * 常规保养数组
     */
    public enum PRESERVELIST {
        OUT_CLEAN,
        IN_CLEAN,
        CABLE_PORT,
        PLUG,
        BOX_BOLT,
        LIGHT_POWER,
    }


    /**
     * 工单反馈状态
     */
    public enum FeedBackState {
        EXCEPTION,
        WAIT_CONFIRM,
        WORKING,
        COMPLETE,
        OUT_OF_PLAN,
        NO_FEEDBACK,
        PAUSE,
        CREATE,
    }

    /**
     * 工单反馈状态
     */
    public enum MediaStatus {
        PROCESSING,
        PAUSE,
        PROBLEM_APPEAR,
        PROBLEM_FEEDBACK,
        COMPLETE_FEEDBACK,
        COMPLETE,

    }

    /**
     * 订单完结状态
     */
    public enum CompleteStatus {
        WORKING,
        WORKER_COMPLETE,
        ADMIN_COMPLETE,
        SUPERADMIN_COMPLETE,

    }

    /**
     * 订单周期状态
     */
    public enum OrderCycleStatus {
        PLAN_CYCLE, //计划周期
        CYCLE_ADJUSTMENT, //周期调整
        READJUSTMENT, //再次调整
        PAUSE, //暂停
        COMPLETE, //完工

    }

    /**
     * 需要创建维修单的勾选项列表
     */
    public enum MaintainList {
        useEnvironment,
        waterProofEnvironment,
        majorStructure,
        safeLock,
        liftSystem,
        pulley,
        outline,
        picture,

    }

    /**
     * 勘察尺寸反馈类别
     */
    public enum SurveySizeType {
        normal,
        special,
    }

    /**
     * 勘察尺寸反馈类别
     */
    public enum SurveyFunctionType {
        base,
        preparework,
    }


    /**
     * 生产订单是否加急
     */
    public enum ProduceOrderIsHurry {
        HURRY,
        NOT_HURRY,
    }

    /**
     * 生产订单级别
     */
    public enum ProduceOrderLevel {
        VERY_IMPORTANT,
        MORE_IMPORTANT,
        GENERALLY_IMPORTANT,
        NORMAL,
    }

    /**
     * 生产订单状态
     */
    public enum ProduceOrderStatus {
        CREATED,    // 创建/未编辑
        EDIT,       // 编辑中
        EDITED,     // 编辑完成
        SEND,       // 派发中 等待接收
        RECEIVED,   // 已经接收
        RETURNED,   // 退回
        COMPLETED,  // 竣工 完成
    }

    /**
     * 生产 日计划日期类型
     */
    public enum ScheduleDateType {
        NORMAL,// 正常日计划
        ADJUST,// 调整日期
        RETURN,// 返工日期
    }

    /**
     * 生产 异常反馈子类型
     */
    public enum WorkPartSubType {
        PLAN_UNUSUAL,// 计划异常
        PRODUCE_UNUSUAL,// 生产异常
    }

    /**
     * 生产 反馈类型
     */
    public enum WorkPartType {
        NORMAL,// 正常
        UNUSUAL,// 异常
        APPLY_ADJUST,// 申请调整
        APPLY_RETURN,// 申请返工
        APPLY_SCRAP,// 申请报废
    }

    /**
     * 生产班组 异常反馈状态
     */
    public enum FeedbackStatus {
        WAIT_CONFIRM, // 等待异常确认
        CONFIRM_FINISH,  //等待异常回复
        WAIT_REPLY_CONFIRM, // 等待异常回复确认
        REPLY_CONFIRM_FINISH, // 异常回复已确认
    }


    public enum RoleName {
        SysManager,
        MANAGER,
        TEAM,
    }
}
